<!DOCTYPE html>
<html lang="en">

<head>
	<meta charset="UTF-8"/>
	<meta name="keywords" content="Format settings, format, line endings, new line, encoding, syntax"/>
	<link rel="stylesheet" href="../../Shared/sty/standard.css"/>
	<script defer src="../../Shared/js/toc.js"></script>
	
	<title>Change Format settings in CotEditor on Mac</title>
</head>

<body>
<a name="settings_format"></a>

<h1>Change Format settings in CotEditor on Mac</h1>

<p>In the CotEditor app <img class="appicon" srcset="../../Shared/gfx/icon_32x32@2x.png 2x" alt=""/> on your Mac, use Format settings to set the document handling, such as line endings and text encoding, and to manage syntaxes.</p>

<p>To change these settings, choose CotEditor &gt; Settings, then click Format.</p>


<table class="settings">
<thead>
	<tr><th>Option</th><th>Description</th></tr>
</thead>

<tbody>
	<tr>
		<th>Default line endings</th>
		<td>Select the line ending style used when creating a new document. This setting is also applied when an opened document contains no line endings. For details, see <a href="about_line_endings.html">Handle various types of line endings</a>.</td>
	</tr>

	<tr>
		<th>Default text encoding</th>
		<td>Select the text encoding used when creating a new document.</td>
	</tr>

	<tr>
		<th>Encoding priorities</th>
		<td>Set the priority order for text encodings and how CotEditor detects encodings when opening a file.
		<dl>
			<dt>Edit List</dt>
			<dd>Click Edit List to set the order of encodings shown in the Text Encoding submenu in the Format menu and in the status bar. This order is also used for encoding detection. CotEditor tries each encoding starting from the top of the list. For details, see <a href="howto_customize_encoding_order.html">Change priorities of text encodings</a>.</dd>
		</dl></td>
	</tr>

	<tr>
		<th>Refer to encoding declaration in document</th>
		<td>When this option is selected, CotEditor takes the encoding declaration written in the document into account when detecting the text encoding. For details, see <a href="about_autodetect_charset.html">Use encoding declarations for encoding detection</a>.</td>
	</tr>

	<tr>
		<th>Default syntax</th>
		<td>Select the syntax used when creating a new document.</td>
	</tr>

	<tr>
		<th>Available syntaxes</th>
		<td>The list of all available syntaxes. A dot before the syntax name indicates that the syntax has been customized. See <a href="syntax_definition.html">Define a syntax</a> for editing syntax definitions.</dd>

		<dl>
			<dt>Add +, Delete -</dt>
			<dd>Create a new syntax or delete the selected syntax. Built-in syntaxes can’t be removed.</dd>

			<dt>Edit (pencil icon)</dt>
			<dd>Edit the selected syntax.</dd>

			<dt>Action pop-up menu <object type="image/svg+xml" class="symbol" data="../../Shared/gfx/ellipsis.circle.svg">with the ellipsis symbol</object></dt>
			<ul>
				<li><em>Duplicate “[<i>syntax name</i>]”</em>:
				Duplicate the selected syntax to create your own version.</li>

				<li><em>Export “[<i>syntax name</i>]”</em>:
				Export a syntax definition file created from the selected syntax. You can use this exported file to use it on another computer. To use an exported file, choose Import.</li>

				<li><em>Share</em>:
				Share the syntax definition file created from the selected syntax.</li>

				<li><em>Import</em>:
				Import a syntax created on another  computer. After choosing Import, select the syntax file you want to add.</li>

				<li><em>Show File Mapping Conflicts</em>:
				Check whether multiple syntaxes are associated with the same extension or filename. This command is unavailable when no conflicts exist.</li>
			</ul></dd>
		</dl></td>
	</tr>
</tbody>
</table>


<section id="cf">
<h2>See also</h2>
<ul>
	<li><a href="about_line_endings.html">Handle various types of line endings in CotEditor on Mac</a></li>
	<li><a href="howto_customize_encoding_order.html">Change priorities of text encodings in CotEditor on Mac</a></li>
	<li><a href="syntax_definition.html">Define a syntax in CotEditor on Mac</a></li>
	<li><a href="syntax_file_mapping.html">Map files to syntaxes in CotEditor on Mac</a></li>
	<li><a href="settings.html">Change settings in CotEditor on Mac</a></li>
</ul>
</section>

</body>
</html>
